import serviceAxios from "@/utils/serviceAxios";

/**
 * 收藏文章
 */
export const addCollect = data => {
  return serviceAxios({
    method: 'POST',
    url: '/addcollect',
    data
  })
}

/**
 * 取消收藏文章
 */
export const deleteCollect = target => {
  return request({
    method: 'DELETE',
    url: `/app/v1_0/article/collections/${target}`
  })
}